* lisp/progmodes/ruby-mode.el (ruby-move-to-block): Improve
authorDmitry Gutov <dgutov@yandex.ru>
Wed, 13 Feb 2013 08:15:05 +0000 (12:15 +0400)
committerDmitry Gutov <dgutov@yandex.ru>
Wed, 13 Feb 2013 08:15:05 +0000 (12:15 +0400)
commit4a1bcd63fef1bc6668f2a4ab07294138aed829fe
tree927fc3ce2163d7cdf08bec683c3b071ba56ff01c
parent6b15f5bf11996696363a5bec8990345bbca5852e
* lisp/progmodes/ruby-mode.el (ruby-move-to-block): Improve
performance.  Instead of recalculating indentation fully for each
line, sum up indentation depth based only on visited lines.
(ruby-parse-partial): Increase the depth after "do" even when END
is right after it.
(ruby-parse-partial): When END is in the middle of a percent
literal, increase the depth if the delimiter chars belong to the
paren syntax class.

* test/automated/ruby-mode-tests.el
(ruby-move-to-block-skips-percent-literal): New test.
lisp/ChangeLog
lisp/progmodes/ruby-mode.el
test/ChangeLog
test/automated/ruby-mode-tests.el